package com.newzqxq.common.enums;

/**
 * @author 石清
 * 0,申请提交;1,审核成功;2,审核失败;3,打款成功;4,打款失败;5,还款提醒;6,全部还清;7,部分还款;8,逾期短信;9,订单失败
 * @Description   短信模版类型枚举
 * @create
 **/
public enum SmsTplTypeEnums {
    APPLY("0","申请提交"),
    AUDIT_SUCCESS("1","审核成功"),
    AUDIT_FAIL("2","审核失败"),
    PAY_SUCCESS("3","打款成功"),
    PAY_FAIL("4","打款失败"),
    REPAY_TIPS("5","还款提醒"),
    REPAY_SUCCESS("6","全部还清"),
    REPAY_PART("7","部分还款"),
    OVERDUE("8","逾期短信"),
    ORDER_FAIL("9","订单失败"),
    REGISTERED("10","注册短信");
    private String code;
    private String message;

    SmsTplTypeEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }
    public static SmsTplTypeEnums getOrderEnumsByCode(int code){
        for (SmsTplTypeEnums enums: SmsTplTypeEnums.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return null;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
